package com.lzg.prototype.utils;

import com.lzg.prototype.VO.Computer;
import com.lzg.prototype.VO.PadComputer;

import java.lang.reflect.InvocationTargetException;

/**
 * @Author lizhigang Date: 2019/4/22 15:02
 * @description:
 */
public class Test {
	public static void main(String[] args) {
		Computer computer = new Computer();
		computer.setKeyword("11");
		computer.setName("ipad");
		computer.setNo(1);

		PadComputer padComputer = new PadComputer();
		try {
			BeanUtil.copyProperties(computer,padComputer);
		} catch (InvocationTargetException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (InstantiationException e) {
			e.printStackTrace();
		}
	}
}
